package com.yipao.admin.map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 属性定义
 *
 * @author y.x
 * @date 2019/6/20
 */
@Component
public class PropertyConfiguration {

    /**
     * 测试环境
     */
    public static final String ENV_TEST = "test";

    /**
     * 线上产品
     */
    public static final String ENV_PRODUCT = "product";
    @Value("${file.web.scheme}")
    public String fileWebScheme;

    /***
     * 用户头像
     */
    @Value("${file.userHeadUrl}")
    public String fileUserHeadUrl;


    @Value("${file.root}")
    public String fileRoot;

    @Value("${oauth.clientId}")
    private String oauthClientId;

    /**
     * 菜妈微超 appId
     */
    @Value("${wx.cmdj.user.appid}")
    private String wxAppId;
    /**
     * 微信支付回调地址
     */
    @Value("${wx.cmdj.user.pay.notifyUrl}")
    private String wxPayNotifyUrl;
    /**
     * 微信的商户id
     */
    @Value("${wx.cmdj.user.mchId}")
    private String wxMchId;
    /**
     * 菜妈宝盒: 微信退款申请的回调地址
     */
    @Value("${wx.cmdj.user.pay.refundNotifyUrl}")
    public String wxRefundNotifyUrl;

    @Value("${oauth.clientSecret}")
    private String oauthClientSecret;
    @Value("${oauth.grantType}")
    private String oauthClientGrantType;
    @Value("${oauth.grantClient}")
    private String oauthGrantClient;
    @Value("${oauth.domain}")
    private String oauthDomain;
    @Value("${oauth.loginUrl}")
    private String oauthLoginUrl;
    @Value("${wx.cmdj.env}")
    private String env;

    @Value("${order.push.page.url}")
    private String orderPushPageUrl;

    /**
     * 附件地址
     */
    @Value("${file.attachment}")
    private String attachmentPath;

    /**
     * 腾讯地图表格id
     */
    @Value("${lbs.qq.tableId}")
    private String lbsQqTableId;


    public String getOauthClientId() {
        return oauthClientId;
    }

    public void setOauthClientId(String oauthClientId) {
        this.oauthClientId = oauthClientId;
    }


    public String getWxAppId() {
        return wxAppId;
    }

    public void setWxAppId(String wxAppId) {
        this.wxAppId = wxAppId;
    }

    public String getOauthClientSecret() {
        return oauthClientSecret;
    }

    public void setOauthClientSecret(String oauthClientSecret) {
        this.oauthClientSecret = oauthClientSecret;
    }

    public String getOauthClientGrantType() {
        return oauthClientGrantType;
    }

    public void setOauthClientGrantType(String oauthClientGrantType) {
        this.oauthClientGrantType = oauthClientGrantType;
    }

    public String getOauthGrantClient() {
        return oauthGrantClient;
    }

    public void setOauthGrantClient(String oauthGrantClient) {
        this.oauthGrantClient = oauthGrantClient;
    }

    public String getOauthDomain() {
        return oauthDomain;
    }

    public void setOauthDomain(String oauthDomain) {
        this.oauthDomain = oauthDomain;
    }

    public String getOauthLoginUrl() {
        return oauthLoginUrl;
    }

    public void setOauthLoginUrl(String oauthLoginUrl) {
        this.oauthLoginUrl = oauthLoginUrl;
    }

    public String getWxPayNotifyUrl() {
        return wxPayNotifyUrl;
    }

    public void setWxPayNotifyUrl(String wxPayNotifyUrl) {
        this.wxPayNotifyUrl = wxPayNotifyUrl;
    }

    public String getWxMchId() {
        return wxMchId;
    }

    public void setWxMchId(String wxMchId) {
        this.wxMchId = wxMchId;
    }

    public String getWxRefundNotifyUrl() {
        return wxRefundNotifyUrl;
    }

    public void setWxRefundNotifyUrl(String wxRefundNotifyUrl) {
        this.wxRefundNotifyUrl = wxRefundNotifyUrl;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getOrderPushPageUrl() {
        return orderPushPageUrl;
    }

    public void setOrderPushPageUrl(String orderPushPageUrl) {
        this.orderPushPageUrl = orderPushPageUrl;
    }

    public String getAttachmentPath() {
        return attachmentPath;
    }

    public void setAttachmentPath(String attachmentPath) {
        this.attachmentPath = attachmentPath;
    }

    public String getLbsQqTableId() {
        return lbsQqTableId;
    }

    public void setLbsQqTableId(String lbsQqTableId) {
        this.lbsQqTableId = lbsQqTableId;
    }
}
